import Vue from 'vue'
import VueRouter from 'vue-router'
import Dashboard from '../components/Dashboard'
import Services from '../components/Services'
import History from '../components/History'
import Actions from '../components/Actions'

Vue.use(VueRouter)

const routes = [
  { path: '/', redirect: '/Dashboard' },
  { path: '/Dashboard', component: Dashboard },
  { path: '/Services', component: Services },
  { path: '/History', component: History },
  { path: '/Actions', component: Actions }
]

const router = new VueRouter({
  routes,
  linkActiveClass: 'my-active'
})

export default router
